package com.software.abstractFactory;

public class FactoryProductor {

    public static AbstractFactory getFactory(String type) {
        if (type.equals("shape")) {
            return new ShapeFactory();
        }
        if (type.equals("color")) {
            return new ColorFactory();
        }
        return null;

    }

}
